package controllers.caterinaController.controllers;

import java.sql.SQLException;
import java.util.ArrayList;

import contract.EmployeeContract;
import controllers.Checks;
import controllers.dbWrapper.EmployeeContractWrapper;

public class EmployeeContractManager {
	
	public static ArrayList<EmployeeContract> getAllEmployeeContract() throws Exception{
		return EmployeeContractWrapper.getAllEmployeeContracts(true);
	}

	public static void insertEmployeeContract(EmployeeContract employeeContract) throws SQLException, Exception {
		Checks.checkEmployeeContract(employeeContract);
		EmployeeContractWrapper.insertEmpContract(employeeContract, LoginManager.getCurrentLogged(), true);
	}
	
}
